<form id="form1" enctype="multipart/form-data" method="post">
  <fieldset>
    <legend>Upload a photo!</legend>
    {{#unless file}}
    <div class="clearfix">
      <label for="fileToUpload">Select a file to upload</label>
      <div class="input">
	<input type="file" id="fileToUpload" name="fileToUpload"/>
	<span class="help-inline"></span>
      </div>
    </div>
    {{/unless}}
    {{#if file}}
    <div id="fileName">Filename: {{file.name}}</div>
    <div id="fileSize">Size: {{file.size}}</div>
    <div id="fileType">Type: {{file.type}}</div>
    <div id="progress">
      <progress id="uploadProgress" value="0" max="100"></progress>
    </div>
    <div>
      <input type="button" name="upload" class="btn primary" value="Upload"/>
      <input type="button" name="cancel" class="bt" value="Cancel"/>
    </div>
    {{/if}}
  </fieldset>
  
</form>
